package com.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.portal.entity.Milestone;
import com.portal.mapper.MilestoneMapper;
import com.portal.service.MilestoneService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 发展历程服务实现类
 */
@Service
public class MilestoneServiceImpl extends ServiceImpl<MilestoneMapper, Milestone> implements MilestoneService {
    
    @Override
    public List<Milestone> getMilestoneList() {
        LambdaQueryWrapper<Milestone> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Milestone::getStatus, true)
               .orderByAsc(Milestone::getSortOrder);
        return list(wrapper);
    }
} 